package com.open.party.cloud.view.comm.qrcode;

import android.content.Intent;

import com.google.zxing.Result;
import com.sinothk.QRCode.ScanerCode.ScanCodeBaseActivity;
import com.sinothk.android.utils.XUtils;

public class QrScanActivity extends ScanCodeBaseActivity {

    @Override
    protected void onScanReturn(Result result) {
        if (result != null) {
            Intent intent = getIntent();
            intent.putExtra("value", result.getText());
            setResult(200, intent);
            finish();
        } else {
            XUtils.toast().show("识别有误");
        }
    }
}
